function [ ] = plottotalResults(result, selections, headline, min, max)

    figure;
    bar(1:5, result');
    axis([0.3 6.3 min max]);
    title(headline);
    ylabel('% correct classification');
    set(gca,'XTick',1:5,'XTickLabel',selections);
    legend('k = 1', 'k = 2', 'k = 3', 'k = 5', 'k = 10', 'mahal1', 'mahal2', 'mahal3', 'percep');
end

